<extend name="Public/base" />
<block name="head">
</block>
<block name="body">
<div class="m-tab s-tab">
	<h2 class="u-tt">后台菜单管理</h2>
	<ul class="u-tabs">
		<li><a href="{:U('index')}">菜单列表</a></li>
		<li><a href="#tab1" class="tab-on tab-a">{$actionName}菜单</a></li>
	</ul>
</div>
<div class="m-form">
	<form action="{:U($action)}" method="post" id="form">
		<fieldset>
			<div id="tab1">
				<div class="formitm">
					<label class="lab">上级规则：</label>
					<div class="ipt">
						<select class="u-slt" name="pid" id="pid"  datatype="*">
							<option value="0">=====顶级栏目=====</option>
							<volist name="auth" id="vo">
							<option value="{$vo.id}" <if condition="$info['pid']==$vo['id']">selected="selected"</if>>{$vo.title_show}</option>
							</volist>
						</select>
						<p></p>
					</div>
				</div>
				<div class="formitm">
					<label class="lab">规则标题：</label>
					<div class="ipt">
						<input name="title" type="text" class="u-ipt u-ipt-6" id="title" value="{$info.title}" datatype="*" errormsg="栏目名称至少1~20个字符！" placeholder="规则标题"/>
						<p></p>
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >栏目URL：</label>
					<div class="ipt">
						<input name="url" type="text" class="u-ipt u-ipt-6" value="{$info.url}" placeholder="URL"/>
						<p>栏目URL名称，不能含有特殊符号</p>
					</div>
				</div>
				<div class="formitm">
					<label class="lab">是否隐藏：</label>
					<div class="ipt">
						<?php if(!isset($info['hide'])){ $info['hide']=0; } ?>
						<label class="u-opt"><input name="hide" type="radio" value="0" <if condition="$info['hide']==0">checked</if> />显示</label>
						<label class="u-opt"><input name="hide" type="radio" value="1" <if condition="$info['hide']==1">checked</if> />隐藏</label>
						<p></p>
					</div>
				</div>
				<div class="formitm">
					<label class="lab">栏目顺序：</label>
					<div class="ipt">
						<input name="sort" type="text" class="u-ipt u-ipt-2" value="{$info.sort|default='10'}" />
						<p>数字越小栏目越靠前</p>
					</div>
				</div>
				<div class="formitm">
					<label class="lab">栏目提示：</label>
					<div class="ipt">
						<input name="tip" type="text" class="u-ipt u-ipt-2" value="{$info.tip}" placeholder="提示"/>
						<p></p>
					</div>
				</div>
			</div>
			<div class="formitm formitm-1  formitm-2">
				<input name="id" type="hidden" value="{$info.id}" />
				<button class="u-btn" type="submit">保存</button>
				<button class="u-btn s-btn-c3" type="reset">重置</button>
				<span class="status" id="status"></span>
			</div>
		</fieldset>
	</form>
</div>
<script>
Do.ready('base','form','dialog','color','editor','sort','upload','tabs',function() {
	//表单综合处理
	$('#form').duxFormPage({
		returnUrl:"{:U('index')}"
	});
});
</script>
</block>